package com.weiwei.diancan.utils;

import com.weiwei.diancan.bean.FindOrderBean;

import java.util.Comparator;

/**
 * Created by weiwei on 2017/4/11.
 * Describe:
 */

public class MyCompare implements Comparator<FindOrderBean.DishListBean> {
    @Override
    public int compare(FindOrderBean.DishListBean o1, FindOrderBean.DishListBean o2) {
        int i = Integer.parseInt(o1.getCounts());
        int i1 = Integer.parseInt(o2.getCounts());
        return i>i1?1:-1;
    }
}
